/*

Copyright 2007 Renaun Erickson (http://renaun.com)

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

@ignore
*/
package asfslib.events
{

import flash.events.Event;

/**
 *  Provides a standard event with a data property for service calls
 *
 *  @author Renaun Erickson
 */
public class FamilySearchServiceEvent extends Event
{
    /**
     * 	The search method on SearchService return event
     */
	public static const SEARCH:String = "search";

    /**
     * 	The read method on PersonService return event
     */
	public static const READ:String = "read";
    
    /**
     * 	The read method on PersonService return event
     */	
	public static const READ_MULTIPLE:String = "readMultiple";
    
    /**
     * 	
     */	
	public static const LOGIN_SUCCESS:String = "loginSuccess";
    
    /**
     * 	
     */	
	public static const LOGIN_FAILURE:String = "loginFailure";
    //--------------------------------------------------------------------------
    //
    //  Constructor
    //
    //--------------------------------------------------------------------------

	/**
	 * 	Constructor
	 */
	public function FamilySearchServiceEvent(type:String, bubbles:Boolean = false, 
													cancelable:Boolean = false,
													result:Object = null,
													fault:String = "")
	{
		super(type, bubbles, cancelable);
		
		this.result = result;
		if (result == null)
			this.result = new Object();
		this.fault = fault;
	}

	/**
	 * 	
	 */
	public var result:Object;


	/**
	 * 	Flag to confirm request was successful
	 */
	public var fault:String;

}
}